<?php
	$yhendus=new mysqli("localhost", "if13", "ifikad", "if13_utthe");
	$kask=$yhendus->prepare("SELECT id, kassinimi, toon FROM kassid");
	$kask->bind_result($id, $kassinimi, $toon);
	$kask->execute();
?>
<!doctype html>
<html>
 <head>
 <title>Kiisud</title>
 </head>
 <body>
 <h1 style='color: red'>Kiisud</h1>
 <?php
 while($kask->fetch()){
 echo "<h2>".htmlspecialchars($kassinimi)."</h2>";
 echo "<div>".htmlspecialchars($toon)."</div>";
 }
 ?>
 </body>
</html>
<?php
 $yhendus->close();
?>